﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>婚礼优品 中国领先婚礼服务平台</title>
		<link rel="stylesheet" href="<%=path%>/css/grid.css" />
		<link rel="stylesheet" href="<%=path%>/css/style.css" />
		<link rel="stylesheet" href="<%=path%>/css/index.css" />
		<link rel="stylesheet" href="<%=path%>/css/news.css" />

		<script type="text/javascript"
			src="<%=path%>/scripts/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="<%= path %>/scripts/jquery.lazyload.js"></script>
		<script type="text/javascript" src="<%= path %>/scripts/index.js"></script>
		<s:if test="%{#session.loginUser != null && #session.loginUser.username=='admin'}">
			<script type="text/javascript" src="<%= path %>/scripts/nicEdit.js"></script>
			<script type="text/javascript">
				bkLib.onDomLoaded(function() {
					new nicEditor({fullPanel : true}).panelInstance('edit-content');
				});
			</script>
		</s:if>
	</head>

	<body>
		<!-- nav start -->
		  <%-- <div class="nav">
		
                 <div class="container_12 ">
			<div class="grid_12">
				<%@include file="/WEB-INF/web/common/header.jsp" %>
			</div>
		
		</div>
   
             </div>
 
          --%>
   		 <%@include file="/WEB-INF/web/common/header.jsp" %>
		<!-- nav end -->

		<!-- wrap start -->
		<div class="wrap">
			<div class="container_12 menu">
				<div class="grid_12">
					<div class="big-label">
						<a hidefocus="true" href="javascript:void(0)">婚礼/</a>
						<p class="voc-color-23">
							新闻
						</p>
                                                 <input id="typestr" type="hidden" value="新闻">
					</div>
					<div class="nav-menu">
						<a title="婚礼家" class="vocation-13 weddingist" onclick="showUserDiv();" href="<%=path %>/home?type=1" ></a>
						<a title="司仪" class="vocation-143 performance" onclick="showUserDiv();" href="<%=path %>/home?type=3" ></a>
						<a title="婚礼摄影" class="vocation-41 photographer" onclick="showUserDiv();" href="<%=path %>/home?type=4" ></a>
						<a title="婚礼摄像" class="vocation-23 cameraman" onclick="showUserDiv();" href="<%=path %>/home?type=5"></a>
						<a title="婚礼彩妆" class="vocation-28 makeup" onclick="showUserDiv();" href="<%=path %>/home?type=2" ></a>				
						<a title="设计" class="vocation-53 designer" onclick="showOtherDiv();" href="<%=path %>/other?type=6" ></a>
						<a title="视频" class="vocation-94 video" onclick="showOtherDiv();" href="<%=path %>/other?type=7" ></a>
						<a title="道具" class="vocation-71 props" onclick="showOtherDiv();" href="<%=path %>/other?type=8" ></a>
					        <a title="租车" class="vocation-1 rentcar" onclick="showOtherDiv(); " href="<%=path %>/other?type=9" ></a>
						<a id="新闻" title="新闻" class="vocation-71 media activet" onclick="showOtherDiv();"  href="<%=path %>/news/list" ></a>
					
					</div>
				</div>
			</div>
			<div class="clear"></div>
			<div class="container_12 img-slider">
				<div class="grid_12">
					<ul class="img-slider-ul" id="imgSliderUl">
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=25"  target="_blank"><img class="pic" src="<%=path%>/images/head/head1.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=24"  target="_blank"><img class="pic" src="<%=path%>/images/head/head2.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=11"  target="_blank"><img class="pic" src="<%=path%>/images/head/head3.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=12"  target="_blank"><img class="pic" src="<%=path%>/images/head/head4.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=13"  target="_blank"><img class="pic" src="<%=path%>/images/head/head5.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/auth/regHome"  target="_blank"><img class="pic" src="<%=path%>/images/head/head6.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=24"  target="_blank"><img class="pic" src="<%=path%>/images/head/head7.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=25"  target="_blank"><img class="pic" src="<%=path%>/images/head/head1.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=11"  target="_blank"><img class="pic" src="<%=path%>/images/head/head3.jpg"></a></li>
					<li><a title="婚礼优品 中国领先婚礼服务平台！" href="<%=path %>/news/detail?newsId=12"  target="_blank"><img class="pic" src="<%=path%>/images/head/head4.jpg"></a></li>
				
					</ul>
					<div class="point-ctrl">
						<a href="javascript:void(0)" class="left-point"></a>
						<a href="javascript:void(0)" class="right-point"></a>
					</div>
					<p class="controller" id="sliderDots">
						<a href="javascript:void(0);" class="slider-on">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
						<a href="javascript:void(0);" class="">●</a>
					</p>
				</div>
			</div>
			<div class="clear"></div>
			<div class="container_12 news-container">
				<s:iterator value="%{ newsList }" status="index">
	        	<div class="grid_6 news-item" >
					<div class="left"><a target="_blank" href="<%=path %>/news/detail?newsId=<s:property value='newsId'/>"><img src="<s:property value='picurl'/>"/></a></div>
					<div class="right">
						<div class="title">
							<a target="_blank" href="<%=path %>/news/detail?newsId=<s:property value='newsId'/>"><s:property value='Name'/></a> 
							<s:if test="%{#session.loginUser != null && #session.loginUser.username=='admin'}">
								<a href="javascript:void(0)" newsid="<s:property value='newsId'/>" style="color:#000;font-size:14px;" class="news-edit">编辑</a>
							</s:if>
							<s:if test="%{#session.loginUser != null && #session.loginUser.username=='admin'}">
								<a href="<%=path %>/news/delete?newsId=<s:property value='newsId'/>" newsid="<s:property value='newsId'/>" style="color:#000;font-size:14px;" class="news-del">删除</a>
							</s:if>
						</div>
						<div class="info">
						日期：<s:date name="createTime" format="yyyy-MM-dd" /> 
						</div>
						<div class="summary">
						<a target="_blank" href="<%=path %>/news/detail?newsId=<s:property value='newsId'/>"><s:property value='absMessage'/></a>
						</div>
					</div>
				</div>
	            <s:if test="%{ #index.count%2==0 }">
	            	<div class="clear"></div>
	            </s:if>
            </s:iterator>
			</div>
			<div class="container_12 pager">
	       		<div class="grid_12">
	       			<%@include file="/WEB-INF/web/common/newsPager.jsp" %>
	       		
	       		</div>

 	<div class="container_12 ad-container">
                     <div class="clear"></div>
                   <div class="clear"></div>
       		<div class="grid_12">
       			<%@include file="/WEB-INF/web/common/advertise.jsp" %>
       		
       		</div>
        </div>
        <div class="clear"></div>

	        </div>
			       
			<s:if test="%{#session.loginUser != null && #session.loginUser.username=='admin'}">
				<div class="clear"></div>
				
				<div class="container_12 news-manager-container">
					<a name="edit"></a>
					<div class="grid_12">
						标题：
						<input id="edit-title" type="text" maxlength="50" style="width:400px;line-height:20px;" />
					    <input id="edit-id" type="hidden"/>
					</div>
					
					<div class="grid_12">
						封面：
						<input id="edit-pic" type="text"  style="width:400px;line-height:20px;" />
					</div>
					
					<div class="grid_12">
						摘 要:&nbsp;
						<textarea id="edit-message" cols="90" rows="3"></textarea>
						
					</div>
					
					<div class="clear"></div>
					
					<div class="grid_12">
						内容:
						<textarea id="edit-content" cols="140" rows="20"></textarea>
						
					</div>
					<div class="clear"></div>
					<div class="grid_12">
						
						<input id="addNews" type="button" value="新建" style="width:65px;height:30px;margin:5px 100px 5px 5px;float:right;"/>
					
						<input id="saveNews" type="button" value="保存" style="width:65px;height:30px;margin:5px 100px 5px 5px;float:right;"/>
					</div>
					<div class="clear"></div>
				</div>
				
			</s:if>
		</div>
		<!-- wrap end -->

		<!-- footer start -->
		<div class="footer">
			<div class="footer-content">
				<div class="container_12">
					<div class="grid_12">
						<%@include file="/WEB-INF/web/common/footer.jsp" %> 
					</div>
				</div>
			</div>
			<div class="footer-bottom">
				<div class="container_12">
					<div class="grid_12">
						<div class="bottom-bg">
							<p>
								COPYRIGHT © 2009 - 2012 WEDDINGEE COMPANY.ALL RIGHTS RESERVED
							</p>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!-- footer end -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F08522dc4f17a9aa963ba74d5a1baa9f0' type='text/javascript'%3E%3C/script%3E"));
</script>

	</body>
</html>
